/* DISCLAIMER
Original file written by Johnny on Flame.
This piece is protected by the GPLv3 License. Commercial uses of this should only happen with my consent.
JohnnyonFlame (a_t) Hotmail (d_o_t) com

In this file you'll find the global definitions and other important stuff.
*/

#ifndef __menu_h__
#define __menu_h__

#include "SDL/SDL.h"
#include "SDL/SDL_ttf.h"

#include "items.h"

#define SCREEN_WIDTH 320
#define SCREEN_HEIGHT 240

#define TICKS_UPDATE 16
#define TICKS_STILL 200
#define UPDATE_BATTERY 2000

#define MAX_GARBAGE 64


//Avoids hardcoded keys on the menu, allowing for easier code maintenance,
#define mKEY_UP SDLK_UP //d-Pad
#define mKEY_DOWN SDLK_DOWN //d-Pad
#define mKEY_OK SDLK_LCTRL //x button on the PS, a button on the dingoo, You get it :)
#define mKEY_NO SDLK_LALT //triangle Button on the PS
#define mKEY_LEFT SDLK_LEFT //
#define mKEY_RIGHT SDLK_RIGHT

extern char *CMD;
extern char *PATH;

extern SDL_Event event;

extern SDL_Surface* background;
extern SDL_Surface* screen;
extern TTF_Font *font;
extern unsigned int isRunning;
extern List_Items *display_menu;
extern int m_index;
int scroll_y;

extern void *garbage_collector[MAX_GARBAGE];
extern int garbage_ammount;

void MENU_Start();
void MENU_Unload();
void MENU_Init();
void setDisplayMenu(List_Items* list);

#endif
